package org.jeecg.modules.activiti.util;/**
 * @Description: Created with IntelliJ IDEA.
 * @Author: huangjinbo
 * @Date: 2021/06/30/17:45
 */

import org.apache.shiro.SecurityUtils;
import org.jeecg.common.system.vo.LoginUser;
import org.springframework.stereotype.Component;

/**
 * @Description: TODO
 * @author: huangjinbo
 * @date: 2021年06月30日 17:45
 */
@Component
public class UserUtil {


    public LoginUser getCurrUser (){
        return (LoginUser) SecurityUtils.getSubject().getPrincipal();
    }

}
